module.exports = app => {
    const { STRING, INTEGER, DATE, BIGINT } = app.Sequelize;

    const Follow = app.model.define('follow', {
        id: {
            type: BIGINT.UNSIGNED,
            primaryKey: true,
            autoIncrement: true,
        },
        user_id: { type: BIGINT.UNSIGNED, allowNull: false },
        follow_id: { type: BIGINT.UNSIGNED, allowNull: false },
        created_at: DATE,
    }, {
        tableName: 'follows',
        timestamps: false,
    });

    return Follow;
};